home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / devices / lpdev.zoo / README < prev   
Encoding:
Text File  |  1993-07-25  |  1.1 KB  |  32 lines

  1. Dear MiNT-users,
  2.  
  3. here is an installable device driver for the Centronics port.  Just
  4. execute the program "lpdev.ttp" (better yet, put it in you mint.cnf
  5. file) and it will install the /dev/lp device. 
  6.  
  7. This driver is interrupt-driven (there are no busy loops) and therefore
  8. shouldn't hog the processor too much.  Top reveals that the command
  9.  
  10.     cat file > /dev/lp
  11.  
  12. takes less than 1% of CPU time (when other tasks are running, of
  13. course).  The command "cp file /dev/lp" would be less efficient, because
  14. cp copies one byte at a time, while cat copies large chunks of data.
  15.  
  16. The device uses a 24-kbyte circular buffer.  This can be modified by
  17. altering the BUFSIZE variable in lpdev.c.  Please choose an even size,
  18. otherwise the bit-copies won't be word-aligned and it will be much
  19. slower. 
  20.  
  21. I have also included a small utility called "lpflush.ttp" to clear the
  22. /dev/lp queue, so everything should be ready for use. Read the man pages
  23. for more information.
  24.  
  25. Enjoy,
  26.  
  27.     Thierry Bousch
  28.  
  29.     Fidonet:    Thierry Bousch @ 2:320/100.9
  30.     Internet:    bousch@suntopo.matups.fr
  31.  
  32.